import { defineStore } from "pinia";
export const useCacheStore = defineStore("cacheStore", {
    state: () => {
        return {
            userItemOne: {},
        };
    },
    getters: {},
    actions: {
        setUserItemOne(userItemOne: object, flag: boolean = true) {
            if (flag) {
                this.userItemOne = { ...this.userItemOne, ...userItemOne };
            } else {
                this.userItemOne = {};
            }
        },
    },
    persist: false,
});
export default useCacheStore;
